<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
    <head>
        <title>注册</title>
    </head>
    <body>

        <p>请求参数名称与控制器方法参数名称一致</p>
        <form action="/customer/sign/up/first" method="post">
            邮箱:
            <input type="text" name="email" placeholder="邮箱"> <br>
            手机号:
            <input type="text" name="tel" placeholder="手机号"> <br>
            出生日期:
            <input type="date" name="birthdate"> <br>
            婚否:
            <input type="radio" name="married" value="Y"> 已婚
            <input type="radio" name="married" value="N"> 单身  <br>
            密码:
            <input type="password" name="password" placeholder="密码"><br>
            确认密码:
            <input type="password" name="confirm" placeholder="确认密码"><br>
            <button type="submit">注册</button>
        </form>

        <p>请求参数名称与Customer类中的属性名一致</p>
        <p>${requestScope.message}</p>
        <form action="/customer/sign/up/second" method="post">
            邮箱:
            <input type="text" name="email" placeholder="邮箱"> <br>
            手机号:
            <input type="text" name="tel" placeholder="手机号"> <br>
            出生日期:
            <input type="date" name="birthdate"> <br>
            婚否:
            <input type="radio" name="married" value="Y"> 已婚
            <input type="radio" name="married" value="N"> 单身  <br>
            密码:
            <input type="password" name="password" placeholder="密码"><br>
            确认密码:
            <input type="password" name="confirm" placeholder="确认密码"><br>
            <button type="submit">注册</button>
        </form>

    </body>
</html>
